
import { setRequestConfig } from './request.js';
 
// 调用setRequestConfig函数进行请求配置
setRequestConfig();
const http = uni.$u.http
// 发起登录请求   post请求
export const requestLogin = (data) => http.get('/captchaImage');
//获取个人中心信息  get请求
export const requestUserInfo = () => http.get('/wx-api/me/info')


// 获取学校列表
export const getSchoolList = (params) => http.get('system/school/list',{params})
// 获取专业列表
export const getmajorList = (params) => http.get('/system/major/list',{params})

export const getStudentList = (params) => http.get('/system/admission/list',{params})

export const prescriptionList = (params) => http.get('/system/prescription/list',{params})


export const prescriptionInfo = (params) => http.get('/system/info/list',{params})


export const wxLogin = (params) => http.post('/api/weChatLogin',params)

export const insertMallOrder = (params) => http.post('/buyer/cashier/insertMallOrder',params)


export const cashierPay = (params) => http.get('/buyer/cashier/pay',{params})
